package com.eastmoney.emis.edda.infrastructure.edda.po;

import com.eastmoney.emis.edda.domain.entity.EddaBind;

import java.time.LocalDate;

public class EmhkEddaBindPo {
    public String EID;
    public String EITIME;
    public String EUTIME;
    public String PROCESSUSERID;
    public String PROCESSUSERNAME;
    public String PROCESSUSERTIME;
    /**
     * 操作状态 0：未处理，1：处理中，2：申请成功，3：手工作废
     */
    public String STATUS;
    public String HKCUACCID;
    public String BANKCODE;
    public String BANKACCOUNT;
    public String CUSTENGNAME;
    /**
     * EDDA授权商户注册编号
     */
    public String REGISTID;
    /**
     * EDDA授权编号
     */
    public String MANDATEID;
    public LocalDate GRANTSTARTDATE;
    public LocalDate GRANTEXPIRYDATE;
    /**
     * 客户参考消息
     */
    public String CREDITREFERENCE;

    public String NOTE;

    public EmhkEddaBindPo() {}

    public EmhkEddaBindPo(EddaBind bind) {
        this.EID = bind.getEid();
        this.STATUS = bind.getStatus();
        this.BANKCODE = bind.getBankCode();
        this.BANKACCOUNT = bind.getBankAccount();
        this.CUSTENGNAME = bind.getCustomEngName();
        this.HKCUACCID = bind.getClientId();
        this.REGISTID = bind.getRegisterId();
        this.MANDATEID = bind.getMandateId();
        this.GRANTSTARTDATE = bind.getGrantStartDate();
        this.GRANTEXPIRYDATE = bind.getGrantExpiryDate();
        this.CREDITREFERENCE = bind.getCreditReference();
        this.NOTE = bind.getNote();
    }

}